package com.fyt.controller.pasture;

import com.fyt.controller.utils.Result;
import com.fyt.service.pasture.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
import java.util.Map;

/**
 * <p>
 * 基础表-省市区 前端控制器
 * </p>
 *
 * @author gdy
 * @since 2023-12-20
 */
@RestController
public class CityController {

    @Autowired
    private CityService cityService;

    @GetMapping("/api/city/getCityList")
    Result getCityByLevel(@RequestParam Map<String,String> map){
        return cityService.getCityByLevel(map);
    }

}
